package com.acme.task4;

public class Task4Arrays {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int[] arr = { 3, 7, 9, 3, 3, 9, 7, 9, 7, 3};
		int num3 = 0, 
			num7 = 0,
			num9 = 0;
		for (int i = 0; i < arr.length; ++i) {
			if (arr[i] == 3) {
				num3++;
			}
			if (arr[i] == 7) {
				num7++;
			}
			if (arr[i] == 9) {
				num9++;
			}
		}
		System.out.println("Number of threes: "+num3);
		System.out.println("Number of sevens: "+num7);
		System.out.println("Number of nines: "+num9);
		
	}

}
